package main

import "fmt"

func main() {
	a, b, c := SumProductDifference(5, 2)
	fmt.Printf("非命名函数： 和 = %d ,  积 = %d , 差 = %d \n", a, b, c)

	a, b, c = SumProductDifference2(5, 2)
	fmt.Printf("命名函数： 和 = %d ,  积 = %d , 差 = %d \n", a, b, c)
}

func SumProductDifference(a, b int) (int, int, int) {
	return a + b, a * b, a - b
}

func SumProductDifference2(a, b int) (sum, product, difference int) {
	sum = a + b
	product = a * b
	difference = a - b
	return
}
